package lua;
import io.netty.buffer.ByteBufAllocator;
import io.netty.buffer.ByteBuf;
import lion.netty4.message.RequestMessageRaw;
import lion.netty4.message.SendToMessageRaw;
public final class LuaMessageDdz{
	public static final class C2SCreateRoom{
		public byte jiao_or_qiang;
		public short cfg_index;
		public byte anti_cheet;
		public static final int id = 1201;

		public static C2SCreateRoom parse(RequestMessageRaw request){
			C2SCreateRoom retObj = new C2SCreateRoom();
			try{
			retObj.jiao_or_qiang=request.readByte();
			retObj.cfg_index=request.readShort();
			retObj.anti_cheet=request.readByte();
			}catch(Exception e){e.printStackTrace();}
			return retObj;
		}
	}
	public static final class S2CCreateRoom{
		public String room_id;
		public short round_count;
		public byte jiao_or_qiang;
		public byte anti_cheet;
		public S2CCreateRoom(String proom_id,byte panti_cheet,short pround_count,byte pjiao_or_qiang){
			this.room_id=proom_id;
			this.anti_cheet=panti_cheet;
			this.round_count=pround_count;
			this.jiao_or_qiang=pjiao_or_qiang;
		}
		public S2CCreateRoom(){}
		public SendToMessageRaw build(ByteBufAllocator alloc){
			try{
			SendToMessageRaw retMsg = new SendToMessageRaw(alloc, 1202);
			retMsg.writeString(this.room_id);
			retMsg.writeShort(this.round_count);
			retMsg.writeByte(this.jiao_or_qiang);
			retMsg.writeByte(this.anti_cheet);
			return retMsg;
			}catch(Exception e){e.printStackTrace();return null;}
		}
	}
	public static final class C2SJoinRoom{
		public String room_id;
		public static final int id = 1203;

		public static C2SJoinRoom parse(RequestMessageRaw request){
			C2SJoinRoom retObj = new C2SJoinRoom();
			try{
			retObj.room_id=request.readString();
			}catch(Exception e){e.printStackTrace();}
			return retObj;
		}
	}
	public static final class S2CJoinRoom{
		public String room_id;
		public short round_count;
		public byte jiao_or_qiang;
		public byte anti_cheet;
		public MemberInfo[] members;
		public SendToMessageRaw build(ByteBufAllocator alloc){
			try{
			SendToMessageRaw retMsg = new SendToMessageRaw(alloc, 1204);
			retMsg.writeString(this.room_id);
			retMsg.writeShort(this.round_count);
			retMsg.writeByte(this.jiao_or_qiang);
			retMsg.writeByte(this.anti_cheet);
			if(this.members == null || this.members.length == 0){
				retMsg.writeInt(0);
			}else{
				retMsg.writeInt(this.members.length);
				for(int i=0;i<this.members.length;i++){
					retMsg.writeInt(this.members[i].player_id);
					retMsg.writeString(this.members[i].name);
					retMsg.writeShort(this.members[i].sex);
					retMsg.writeString(this.members[i].headimg);
					retMsg.writeInt(this.members[i].level);
				}
			}
			return retMsg;
			}catch(Exception e){e.printStackTrace();return null;}
		}
	}
	public static final class PushPlayerJoin{
		public short seat_index;
		public MemberInfo member_info;
		public SendToMessageRaw build(ByteBufAllocator alloc){
			try{
			SendToMessageRaw retMsg = new SendToMessageRaw(alloc, 1206);
			retMsg.writeShort(this.seat_index);
			if(this.member_info == null){
				retMsg.writeBool(false);
			}else{
				retMsg.writeBool(true);
					retMsg.writeInt(this.member_info.player_id);
					retMsg.writeString(this.member_info.name);
					retMsg.writeShort(this.member_info.sex);
					retMsg.writeString(this.member_info.headimg);
					retMsg.writeInt(this.member_info.level);
			}
			return retMsg;
			}catch(Exception e){e.printStackTrace();return null;}
		}
	}
	public static final class PushGameStart{
		public String room_server_host;
		public int room_server_port;
		public byte[] my_cards;
		public short jiao_dizhu_index;
		public SendToMessageRaw build(ByteBufAllocator alloc){
			try{
			SendToMessageRaw retMsg = new SendToMessageRaw(alloc, 1208);
			retMsg.writeString(this.room_server_host);
			retMsg.writeInt(this.room_server_port);
			if(this.my_cards == null || this.my_cards.length == 0){
				retMsg.writeInt(0);
			}else{
				retMsg.writeInt(this.my_cards.length);
				for(int i=0;i<this.my_cards.length;i++){
			retMsg.writeByte(this.my_cards[i]);
				}
			}
			retMsg.writeShort(this.jiao_dizhu_index);
			return retMsg;
			}catch(Exception e){e.printStackTrace();return null;}
		}
	}
	public static final class MemberInfo{
		public int player_id;
		public String name;
		public short sex;
		public String headimg;
		public int level;
		public MemberInfo(int pplayer_id,String pheadimg,int plevel,short psex,String pname){
			this.player_id=pplayer_id;
			this.headimg=pheadimg;
			this.level=plevel;
			this.sex=psex;
			this.name=pname;
		}
		public MemberInfo(){}
	}
	public static final class C2SDismissRoom{
		public static final int id = 1209;

		public static C2SDismissRoom parse(RequestMessageRaw request){
			C2SDismissRoom retObj = new C2SDismissRoom();
			try{
			}catch(Exception e){e.printStackTrace();}
			return retObj;
		}
	}
	public static final class S2CDismissRoom{
		public SendToMessageRaw build(ByteBufAllocator alloc){
			try{
			SendToMessageRaw retMsg = new SendToMessageRaw(alloc, 1210);
			return retMsg;
			}catch(Exception e){e.printStackTrace();return null;}
		}
	}
	public static final class PushDismissRoom{
		public SendToMessageRaw build(ByteBufAllocator alloc){
			try{
			SendToMessageRaw retMsg = new SendToMessageRaw(alloc, 1212);
			return retMsg;
			}catch(Exception e){e.printStackTrace();return null;}
		}
	}
	public static final class C2SDdzConnectRoom{
		public long sessionId;
		public static final int id = 1213;

		public static C2SDdzConnectRoom parse(RequestMessageRaw request){
			C2SDdzConnectRoom retObj = new C2SDdzConnectRoom();
			try{
			retObj.sessionId=request.readLong();
			}catch(Exception e){e.printStackTrace();}
			return retObj;
		}
	}
	public static final class S2CDdzConnectRoom{
		public int is_success;
		public byte[] connected_player_indexs;
		public SendToMessageRaw build(ByteBufAllocator alloc){
			try{
			SendToMessageRaw retMsg = new SendToMessageRaw(alloc, 1214);
			retMsg.writeInt(this.is_success);
			if(this.connected_player_indexs == null || this.connected_player_indexs.length == 0){
				retMsg.writeInt(0);
			}else{
				retMsg.writeInt(this.connected_player_indexs.length);
				for(int i=0;i<this.connected_player_indexs.length;i++){
			retMsg.writeByte(this.connected_player_indexs[i]);
				}
			}
			return retMsg;
			}catch(Exception e){e.printStackTrace();return null;}
		}
	}
	public static final class C2SDdzJiaoDiZhu{
		public short is_call;
		public static final int id = 1215;

		public static C2SDdzJiaoDiZhu parse(RequestMessageRaw request){
			C2SDdzJiaoDiZhu retObj = new C2SDdzJiaoDiZhu();
			try{
			retObj.is_call=request.readShort();
			}catch(Exception e){e.printStackTrace();}
			return retObj;
		}
	}
	public static final class S2CDdzJiaoDiZhu{
		public SendToMessageRaw build(ByteBufAllocator alloc){
			try{
			SendToMessageRaw retMsg = new SendToMessageRaw(alloc, 1216);
			return retMsg;
			}catch(Exception e){e.printStackTrace();return null;}
		}
	}
	public static final class PushJiaoDiZhu{
		public short current_dizhu_index;
		public short current_dizhu_score;
		public short next_jiao_dizhu_index;
		public PushJiaoDiZhu(short pcurrent_dizhu_index,short pnext_jiao_dizhu_index,short pcurrent_dizhu_score){
			this.current_dizhu_index=pcurrent_dizhu_index;
			this.next_jiao_dizhu_index=pnext_jiao_dizhu_index;
			this.current_dizhu_score=pcurrent_dizhu_score;
		}
		public PushJiaoDiZhu(){}
		public SendToMessageRaw build(ByteBufAllocator alloc){
			try{
			SendToMessageRaw retMsg = new SendToMessageRaw(alloc, 1218);
			retMsg.writeShort(this.current_dizhu_index);
			retMsg.writeShort(this.current_dizhu_score);
			retMsg.writeShort(this.next_jiao_dizhu_index);
			return retMsg;
			}catch(Exception e){e.printStackTrace();return null;}
		}
	}
	public static final class PushDiZhuSelect{
		public short dizhu_index;
		public PushDiZhuSelect(short pdizhu_index){
			this.dizhu_index=pdizhu_index;
		}
		public PushDiZhuSelect(){}
		public SendToMessageRaw build(ByteBufAllocator alloc){
			try{
			SendToMessageRaw retMsg = new SendToMessageRaw(alloc, 1220);
			retMsg.writeShort(this.dizhu_index);
			return retMsg;
			}catch(Exception e){e.printStackTrace();return null;}
		}
	}
	public static final class C2SDdzChupai{
		public byte[] pai;
		public static final int id = 1221;

		public static C2SDdzChupai parse(RequestMessageRaw request){
			C2SDdzChupai retObj = new C2SDdzChupai();
			try{
			int pai_size = request.readInt();
				retObj.pai = new byte[pai_size];
				for(int i=0;i<pai_size;i++){
					retObj.pai[i]=request.readByte();
				}
			}catch(Exception e){e.printStackTrace();}
			return retObj;
		}
	}
	public static final class S2CDdzChupai{
		public short is_success;
		public S2CDdzChupai(short pis_success){
			this.is_success=pis_success;
		}
		public S2CDdzChupai(){}
		public SendToMessageRaw build(ByteBufAllocator alloc){
			try{
			SendToMessageRaw retMsg = new SendToMessageRaw(alloc, 1222);
			retMsg.writeShort(this.is_success);
			return retMsg;
			}catch(Exception e){e.printStackTrace();return null;}
		}
	}
	public static final class PushDdzChupai{
		public short chupai_player_index;
		public byte[] pai;
		public SendToMessageRaw build(ByteBufAllocator alloc){
			try{
			SendToMessageRaw retMsg = new SendToMessageRaw(alloc, 1224);
			retMsg.writeShort(this.chupai_player_index);
			if(this.pai == null || this.pai.length == 0){
				retMsg.writeInt(0);
			}else{
				retMsg.writeInt(this.pai.length);
				for(int i=0;i<this.pai.length;i++){
			retMsg.writeByte(this.pai[i]);
				}
			}
			return retMsg;
			}catch(Exception e){e.printStackTrace();return null;}
		}
	}
	public static final class PlayerPaiList{
		public byte[] pai;
	}
	public static final class PushDdzRoundEnd{
		public boolean is_dizhu_win;
		public RoundScore[] score_list;
		public PlayerPaiList[] pai_list;
		public byte spring_type;
		public SendToMessageRaw build(ByteBufAllocator alloc){
			try{
			SendToMessageRaw retMsg = new SendToMessageRaw(alloc, 1226);
			retMsg.writeBool(this.is_dizhu_win);
			if(this.score_list == null || this.score_list.length == 0){
				retMsg.writeInt(0);
			}else{
				retMsg.writeInt(this.score_list.length);
				for(int i=0;i<this.score_list.length;i++){
					retMsg.writeInt(this.score_list[i].player_id);
					retMsg.writeShort(this.score_list[i].score);
				}
			}
			if(this.pai_list == null || this.pai_list.length == 0){
				retMsg.writeInt(0);
			}else{
				retMsg.writeInt(this.pai_list.length);
				for(int i=0;i<this.pai_list.length;i++){
					if(this.pai_list[i].pai == null || this.pai_list[i].pai.length == 0){
				retMsg.writeInt(0);
			}else{
				retMsg.writeInt(this.pai_list[i].pai.length);
				for(int pai_idx=0;pai_idx<this.pai_list[i].pai.length;pai_idx++){
			retMsg.writeByte(this.pai_list[i].pai[pai_idx]);
				}
			}
				}
			}
			retMsg.writeByte(this.spring_type);
			return retMsg;
			}catch(Exception e){e.printStackTrace();return null;}
		}
	}
	public static final class RoundScore{
		public int player_id;
		public short score;
		public RoundScore(short pscore,int pplayer_id){
			this.score=pscore;
			this.player_id=pplayer_id;
		}
		public RoundScore(){}
	}
	public static final class C2SDdzChat{
		public byte msg_index;
		public static final int id = 1227;

		public static C2SDdzChat parse(RequestMessageRaw request){
			C2SDdzChat retObj = new C2SDdzChat();
			try{
			retObj.msg_index=request.readByte();
			}catch(Exception e){e.printStackTrace();}
			return retObj;
		}
	}
	public static final class S2CDdzChat{
		public SendToMessageRaw build(ByteBufAllocator alloc){
			try{
			SendToMessageRaw retMsg = new SendToMessageRaw(alloc, 1228);
			return retMsg;
			}catch(Exception e){e.printStackTrace();return null;}
		}
	}
	public static final class PushDdzChat{
		public byte player_index;
		public byte msg_index;
		public PushDdzChat(byte pplayer_index,byte pmsg_index){
			this.player_index=pplayer_index;
			this.msg_index=pmsg_index;
		}
		public PushDdzChat(){}
		public SendToMessageRaw build(ByteBufAllocator alloc){
			try{
			SendToMessageRaw retMsg = new SendToMessageRaw(alloc, 1230);
			retMsg.writeByte(this.player_index);
			retMsg.writeByte(this.msg_index);
			return retMsg;
			}catch(Exception e){e.printStackTrace();return null;}
		}
	}
	public static final class C2SJoinRoomCheck{
		public String room_id;
		public static final int id = 1231;

		public static C2SJoinRoomCheck parse(RequestMessageRaw request){
			C2SJoinRoomCheck retObj = new C2SJoinRoomCheck();
			try{
			retObj.room_id=request.readString();
			}catch(Exception e){e.printStackTrace();}
			return retObj;
		}
	}
	public static final class S2CJoinRoomCheck{
		public SendToMessageRaw build(ByteBufAllocator alloc){
			try{
			SendToMessageRaw retMsg = new SendToMessageRaw(alloc, 1232);
			return retMsg;
			}catch(Exception e){e.printStackTrace();return null;}
		}
	}
	public static final class PushDdzNewRound{
		public byte[] my_cards;
		public short jiao_dizhu_index;
		public SendToMessageRaw build(ByteBufAllocator alloc){
			try{
			SendToMessageRaw retMsg = new SendToMessageRaw(alloc, 1234);
			if(this.my_cards == null || this.my_cards.length == 0){
				retMsg.writeInt(0);
			}else{
				retMsg.writeInt(this.my_cards.length);
				for(int i=0;i<this.my_cards.length;i++){
			retMsg.writeByte(this.my_cards[i]);
				}
			}
			retMsg.writeShort(this.jiao_dizhu_index);
			return retMsg;
			}catch(Exception e){e.printStackTrace();return null;}
		}
	}
	public static final class C2SDdzVoicePlay{
		public ByteBuf content;
		public static final int id = 1235;

		public static C2SDdzVoicePlay parse(RequestMessageRaw request){
			C2SDdzVoicePlay retObj = new C2SDdzVoicePlay();
			try{
			retObj.content=request.readByteArray();
			}catch(Exception e){e.printStackTrace();}
			return retObj;
		}
	}
	public static final class S2CDdzVoicePlay{
		public SendToMessageRaw build(ByteBufAllocator alloc){
			try{
			SendToMessageRaw retMsg = new SendToMessageRaw(alloc, 1236);
			return retMsg;
			}catch(Exception e){e.printStackTrace();return null;}
		}
	}
	public static final class PushDdzVoicePlay{
		public byte player_index;
		public ByteBuf content;
		public SendToMessageRaw build(ByteBufAllocator alloc){
			try{
			SendToMessageRaw retMsg = new SendToMessageRaw(alloc, 1238);
			retMsg.writeByte(this.player_index);
			retMsg.writeByteArray(this.content);
			return retMsg;
			}catch(Exception e){e.printStackTrace();return null;}
		}
	}
	public static final class PushDdzFaPai2{
		public byte[] my_cards;
		public byte[] di_cards;
		public short jiao_dizhu_index;
		public SendToMessageRaw build(ByteBufAllocator alloc){
			try{
			SendToMessageRaw retMsg = new SendToMessageRaw(alloc, 1240);
			if(this.my_cards == null || this.my_cards.length == 0){
				retMsg.writeInt(0);
			}else{
				retMsg.writeInt(this.my_cards.length);
				for(int i=0;i<this.my_cards.length;i++){
			retMsg.writeByte(this.my_cards[i]);
				}
			}
			if(this.di_cards == null || this.di_cards.length == 0){
				retMsg.writeInt(0);
			}else{
				retMsg.writeInt(this.di_cards.length);
				for(int i=0;i<this.di_cards.length;i++){
			retMsg.writeByte(this.di_cards[i]);
				}
			}
			retMsg.writeShort(this.jiao_dizhu_index);
			return retMsg;
			}catch(Exception e){e.printStackTrace();return null;}
		}
	}
	public static final class C2SDdzBackRoomHall{
		public static final int id = 1241;

		public static C2SDdzBackRoomHall parse(RequestMessageRaw request){
			C2SDdzBackRoomHall retObj = new C2SDdzBackRoomHall();
			try{
			}catch(Exception e){e.printStackTrace();}
			return retObj;
		}
	}
	public static final class S2CDdzBackRoomHall{
		public S2CJoinRoom hall_info;
		public SendToMessageRaw build(ByteBufAllocator alloc){
			try{
			SendToMessageRaw retMsg = new SendToMessageRaw(alloc, 1242);
			if(this.hall_info == null){
				retMsg.writeBool(false);
			}else{
				retMsg.writeBool(true);
					retMsg.writeString(this.hall_info.room_id);
					retMsg.writeShort(this.hall_info.round_count);
					retMsg.writeByte(this.hall_info.jiao_or_qiang);
					retMsg.writeByte(this.hall_info.anti_cheet);
					if(this.hall_info.members == null || this.hall_info.members.length == 0){
				retMsg.writeInt(0);
			}else{
				retMsg.writeInt(this.hall_info.members.length);
				for(int members_idx=0;members_idx<this.hall_info.members.length;members_idx++){
					retMsg.writeInt(this.hall_info.members[members_idx].player_id);
					retMsg.writeString(this.hall_info.members[members_idx].name);
					retMsg.writeShort(this.hall_info.members[members_idx].sex);
					retMsg.writeString(this.hall_info.members[members_idx].headimg);
					retMsg.writeInt(this.hall_info.members[members_idx].level);
				}
			}
			}
			return retMsg;
			}catch(Exception e){e.printStackTrace();return null;}
		}
	}
	public static final class C2SDdzBackRoom{
		public static final int id = 1243;

		public static C2SDdzBackRoom parse(RequestMessageRaw request){
			C2SDdzBackRoom retObj = new C2SDdzBackRoom();
			try{
			}catch(Exception e){e.printStackTrace();}
			return retObj;
		}
	}
	public static final class S2CDdzBackRoom{
		public String room_id;
		public byte[] connected_player_indexs;
		public short round_count;
		public byte jiao_or_qiang;
		public byte anti_cheet;
		public short current_round;
		public MemberInfo[] members;
		public byte[] my_cards;
		public byte[] di_cards;
		public byte[] left_card_count;
		public byte jiao_dizhu_index;
		public byte jiao_dizhu_score;
		public byte qiang_dizhu_index;
		public JiaBeiInfo[] jiabei_info;
		public byte zhuangjia_index;
		public byte chupai_player_index;
		public byte valid_chupai_index;
		public byte[] chupai_card;
		public int create_time;
		public SendToMessageRaw build(ByteBufAllocator alloc){
			try{
			SendToMessageRaw retMsg = new SendToMessageRaw(alloc, 1244);
			retMsg.writeString(this.room_id);
			if(this.connected_player_indexs == null || this.connected_player_indexs.length == 0){
				retMsg.writeInt(0);
			}else{
				retMsg.writeInt(this.connected_player_indexs.length);
				for(int i=0;i<this.connected_player_indexs.length;i++){
			retMsg.writeByte(this.connected_player_indexs[i]);
				}
			}
			retMsg.writeShort(this.round_count);
			retMsg.writeByte(this.jiao_or_qiang);
			retMsg.writeByte(this.anti_cheet);
			retMsg.writeShort(this.current_round);
			if(this.members == null || this.members.length == 0){
				retMsg.writeInt(0);
			}else{
				retMsg.writeInt(this.members.length);
				for(int i=0;i<this.members.length;i++){
					retMsg.writeInt(this.members[i].player_id);
					retMsg.writeString(this.members[i].name);
					retMsg.writeShort(this.members[i].sex);
					retMsg.writeString(this.members[i].headimg);
					retMsg.writeInt(this.members[i].level);
				}
			}
			if(this.my_cards == null || this.my_cards.length == 0){
				retMsg.writeInt(0);
			}else{
				retMsg.writeInt(this.my_cards.length);
				for(int i=0;i<this.my_cards.length;i++){
			retMsg.writeByte(this.my_cards[i]);
				}
			}
			if(this.di_cards == null || this.di_cards.length == 0){
				retMsg.writeInt(0);
			}else{
				retMsg.writeInt(this.di_cards.length);
				for(int i=0;i<this.di_cards.length;i++){
			retMsg.writeByte(this.di_cards[i]);
				}
			}
			if(this.left_card_count == null || this.left_card_count.length == 0){
				retMsg.writeInt(0);
			}else{
				retMsg.writeInt(this.left_card_count.length);
				for(int i=0;i<this.left_card_count.length;i++){
			retMsg.writeByte(this.left_card_count[i]);
				}
			}
			retMsg.writeByte(this.jiao_dizhu_index);
			retMsg.writeByte(this.jiao_dizhu_score);
			retMsg.writeByte(this.qiang_dizhu_index);
			if(this.jiabei_info == null || this.jiabei_info.length == 0){
				retMsg.writeInt(0);
			}else{
				retMsg.writeInt(this.jiabei_info.length);
				for(int i=0;i<this.jiabei_info.length;i++){
					retMsg.writeByte(this.jiabei_info[i].player_index);
					retMsg.writeByte(this.jiabei_info[i].is_jiabei);
				}
			}
			retMsg.writeByte(this.zhuangjia_index);
			retMsg.writeByte(this.chupai_player_index);
			retMsg.writeByte(this.valid_chupai_index);
			if(this.chupai_card == null || this.chupai_card.length == 0){
				retMsg.writeInt(0);
			}else{
				retMsg.writeInt(this.chupai_card.length);
				for(int i=0;i<this.chupai_card.length;i++){
			retMsg.writeByte(this.chupai_card[i]);
				}
			}
			retMsg.writeInt(this.create_time);
			return retMsg;
			}catch(Exception e){e.printStackTrace();return null;}
		}
	}
	public static final class JiaBeiInfo{
		public byte player_index;
		public byte is_jiabei;
		public JiaBeiInfo(byte pplayer_index,byte pis_jiabei){
			this.player_index=pplayer_index;
			this.is_jiabei=pis_jiabei;
		}
		public JiaBeiInfo(){}
	}
	public static final class C2SDdzForceDismisroom{
		public static final int id = 1245;

		public static C2SDdzForceDismisroom parse(RequestMessageRaw request){
			C2SDdzForceDismisroom retObj = new C2SDdzForceDismisroom();
			try{
			}catch(Exception e){e.printStackTrace();}
			return retObj;
		}
	}
	public static final class S2CDdzForceDismisroom{
		public SendToMessageRaw build(ByteBufAllocator alloc){
			try{
			SendToMessageRaw retMsg = new SendToMessageRaw(alloc, 1246);
			return retMsg;
			}catch(Exception e){e.printStackTrace();return null;}
		}
	}
	public static final class PushDdzForceDismissRoom{
		public byte player_index;
		public PushDdzForceDismissRoom(byte pplayer_index){
			this.player_index=pplayer_index;
		}
		public PushDdzForceDismissRoom(){}
		public SendToMessageRaw build(ByteBufAllocator alloc){
			try{
			SendToMessageRaw retMsg = new SendToMessageRaw(alloc, 1248);
			retMsg.writeByte(this.player_index);
			return retMsg;
			}catch(Exception e){e.printStackTrace();return null;}
		}
	}
	public static final class C2SDdzQiangDiZhu{
		public byte is_qiang;
		public static final int id = 1249;

		public static C2SDdzQiangDiZhu parse(RequestMessageRaw request){
			C2SDdzQiangDiZhu retObj = new C2SDdzQiangDiZhu();
			try{
			retObj.is_qiang=request.readByte();
			}catch(Exception e){e.printStackTrace();}
			return retObj;
		}
	}
	public static final class S2CDdzQiangDiZhu{
		public SendToMessageRaw build(ByteBufAllocator alloc){
			try{
			SendToMessageRaw retMsg = new SendToMessageRaw(alloc, 1250);
			return retMsg;
			}catch(Exception e){e.printStackTrace();return null;}
		}
	}
	public static final class PushDdzQiangDiZhu{
		public byte player_index;
		public byte is_qiang;
		public PushDdzQiangDiZhu(byte pplayer_index,byte pis_qiang){
			this.player_index=pplayer_index;
			this.is_qiang=pis_qiang;
		}
		public PushDdzQiangDiZhu(){}
		public SendToMessageRaw build(ByteBufAllocator alloc){
			try{
			SendToMessageRaw retMsg = new SendToMessageRaw(alloc, 1252);
			retMsg.writeByte(this.player_index);
			retMsg.writeByte(this.is_qiang);
			return retMsg;
			}catch(Exception e){e.printStackTrace();return null;}
		}
	}
	public static final class C2SDdzFanQiang{
		public byte is_fan_qiang;
		public static final int id = 1253;

		public static C2SDdzFanQiang parse(RequestMessageRaw request){
			C2SDdzFanQiang retObj = new C2SDdzFanQiang();
			try{
			retObj.is_fan_qiang=request.readByte();
			}catch(Exception e){e.printStackTrace();}
			return retObj;
		}
	}
	public static final class S2CDdzFanQiang{
		public SendToMessageRaw build(ByteBufAllocator alloc){
			try{
			SendToMessageRaw retMsg = new SendToMessageRaw(alloc, 1254);
			return retMsg;
			}catch(Exception e){e.printStackTrace();return null;}
		}
	}
	public static final class PushDdzFanQiang{
		public byte player_index;
		public byte is_fan_qiang;
		public PushDdzFanQiang(byte pplayer_index,byte pis_fan_qiang){
			this.player_index=pplayer_index;
			this.is_fan_qiang=pis_fan_qiang;
		}
		public PushDdzFanQiang(){}
		public SendToMessageRaw build(ByteBufAllocator alloc){
			try{
			SendToMessageRaw retMsg = new SendToMessageRaw(alloc, 1256);
			retMsg.writeByte(this.player_index);
			retMsg.writeByte(this.is_fan_qiang);
			return retMsg;
			}catch(Exception e){e.printStackTrace();return null;}
		}
	}
	public static final class C2SDdzJiaBei{
		public byte is_jiabei;
		public static final int id = 1257;

		public static C2SDdzJiaBei parse(RequestMessageRaw request){
			C2SDdzJiaBei retObj = new C2SDdzJiaBei();
			try{
			retObj.is_jiabei=request.readByte();
			}catch(Exception e){e.printStackTrace();}
			return retObj;
		}
	}
	public static final class S2CDdzJiaBei{
		public SendToMessageRaw build(ByteBufAllocator alloc){
			try{
			SendToMessageRaw retMsg = new SendToMessageRaw(alloc, 1258);
			return retMsg;
			}catch(Exception e){e.printStackTrace();return null;}
		}
	}
	public static final class PushDdzJiaBei{
		public byte player_index;
		public byte is_jiabei;
		public PushDdzJiaBei(byte pplayer_index,byte pis_jiabei){
			this.player_index=pplayer_index;
			this.is_jiabei=pis_jiabei;
		}
		public PushDdzJiaBei(){}
		public SendToMessageRaw build(ByteBufAllocator alloc){
			try{
			SendToMessageRaw retMsg = new SendToMessageRaw(alloc, 1260);
			retMsg.writeByte(this.player_index);
			retMsg.writeByte(this.is_jiabei);
			return retMsg;
			}catch(Exception e){e.printStackTrace();return null;}
		}
	}
	public static final class PushShowDi{
		public byte[] di_cards;
		public SendToMessageRaw build(ByteBufAllocator alloc){
			try{
			SendToMessageRaw retMsg = new SendToMessageRaw(alloc, 1262);
			if(this.di_cards == null || this.di_cards.length == 0){
				retMsg.writeInt(0);
			}else{
				retMsg.writeInt(this.di_cards.length);
				for(int i=0;i<this.di_cards.length;i++){
			retMsg.writeByte(this.di_cards[i]);
				}
			}
			return retMsg;
			}catch(Exception e){e.printStackTrace();return null;}
		}
	}
	public static final class PushDdzConnectRoom{
		public byte player_index;
		public PushDdzConnectRoom(byte pplayer_index){
			this.player_index=pplayer_index;
		}
		public PushDdzConnectRoom(){}
		public SendToMessageRaw build(ByteBufAllocator alloc){
			try{
			SendToMessageRaw retMsg = new SendToMessageRaw(alloc, 1264);
			retMsg.writeByte(this.player_index);
			return retMsg;
			}catch(Exception e){e.printStackTrace();return null;}
		}
	}
}
